/*
 * Created on Jan 21, 2004
 *
 * To change the template for this generated file go to
 * Window - Preferences - Java - Code Generation - Code and Comments
 */
package org.vectrics.client.webclient;

import java.util.Date;

import org.apache.log4j.Logger;
import org.vectrics.domain.Domain;

public class ServiceConnection {
	private transient Logger log = Logger.getLogger(ServiceConnection.class);
	private ServerConfig config = new ServerConfig();
	private ConnectionStatus status = ConnectionStatus.DISCONNECTED;
	private String sessionId = null;
	Date authExpiration = null;
	private String userName = null;
	private String password = null;
	private String domainId = null;
	
	
	public ServiceConnection() {
		super();
	}

	/**
	 * @return
	 */
	public ServerConfig getConfig() {
		return config;
	}

	/**
	 * @param config
	 */
	public void setConfig(ServerConfig config) {
		this.config = config;
	}

	/**
	 * @return
	 */
	public ConnectionStatus getConnectionStatus() {
		return status;
	}

	/**
	 * @param status
	 */
	public void setConnectionStatus(ConnectionStatus status) {
		this.status = status;
	}
	/**
	 * @return
	 */
	public String getSessionId() {
		return sessionId;
	}

	/**
	 * @param sessionId
	 */
	public void setSessionId(String sessionId) {
		this.sessionId = sessionId;
	}

	/**
	 * @return
	 */
	public ConnectionStatus getStatus() {
		return status;
	}

	/**
	 * @param status
	 */
	public void setStatus(ConnectionStatus status) {
		this.status = status;
	}

	/**
	 * @return
	 */
	public Date getAuthExpiration() {
		return authExpiration;
	}

	/**
	 * @param authExpiration
	 */
	public void setAuthExpiration(Date authExpiration) {
		this.authExpiration = authExpiration;
	}

	/**
	 * @return
	 */
	public String getPassword() {
		return password;
	}

	/**
	 * @param password
	 */
	public void setPassword(String password) {
		this.password = password;
	}

	/**
	 * @return
	 */
	public String getUserName() {
		return userName;
	}

	/**
	 * @param userName
	 */
	public void setUserName(String userName) {
		log.debug("setUserName() - user who will be authenticated on server");
		this.userName = userName;
	}

	public String getDomainId() {
		return domainId;
	}

	public void setDomainId(String domainId) {
		this.domainId = domainId;
	}

	
}
